package com.cr.front.news.service;

import com.cr.front.news.pojo.entity.News;
import com.cr.front.news.pojo.query.SearchParam;
import com.cr.front.news.pojo.vo.NewsByCategoryIdVO;
import com.cr.front.news.pojo.vo.NewsByTimeVO;
import com.cr.front.news.pojo.vo.NewsByViewsVO;
import com.cr.front.news.pojo.vo.NewsVO;

import java.util.List;

public interface NewsService {

    List<NewsByTimeVO> getLatestNews();

    NewsVO getDetailNews(Integer id);


    List<NewsByViewsVO> getNewsByViews();


    List<News> getTotalNewsByCategoryId(SearchParam searchParam);

    //预热缓存
    List<News> cacheNews();
}
